<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" type="text/css" href="__CSS__/main.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/common.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.min.css" />
    <script type="text/javascript" src="__EXTEND__/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/lib/layer/2.4/layer.js"></script>
    <![endif]-->
    <title>银行个人征信查询</title>
</head>
<body>
<div class="contant">
<div class="row">
    <div class="top">审核部>银行个人征信查询</div>
    <div class="content">
    <form class="form-horizontal" method="post">
        <div class="box">
            <!-- <h1><span>(标*为必填项)</span></h1> -->
            <div class="list-block">
                <div class="form-group">
                    <label for="rate" class="col-sm-2 control-label">姓名</label>
                    <div class="col-sm-10">
                      <input name="user_name" id="user_name" type="text" class="form-control" id="rate" >
                    </div>
                </div>
                <div class="form-group">
                    <label for="bank" class="col-sm-2 control-label">身份证号</label>
                    <div class="col-sm-10">
                      <input name="idCard" id="idCard" type="text" class="form-control" id="rate" >
                    </div>
                </div>

                <div class="form-group">
                    <label for="bank" class="col-sm-2 control-label">查询结果</label>
                    <div class="col-sm-10">
                      <textarea rows="3" class="form-control" name="remark" maxlength='20'></textarea>
                    </div>
                </div>

                <div class="form-group">
                    <div class="list-block" style="float: right;">
                        <input type="button" id="query-personal-credit" class="button01" value="查看">
                        <input type="button" class="button01" value="重置">
                    </div>
                </div>
            </div>
        </div>
    </form>
    </div>
</div>
</div>

<script type="text/javascript">
    $('#query-personal-credit').click(function(){

        var name   = $('#user_name').val();
        var idCard = $('#idCard').val();

        alert(name);
        alert(idCard);

        $.ajax({
            type: "POST",
            url: "/Admin/Find/queryPersonalCredit",
            data:{name:name,idCard:idCard},
            success: function(msg)
            {
                obj_data = $.parseJSON(msg);
                console.log(obj_data);
                var target = 'textarea[name="remark"]';
                $(target).html(obj_data.msg);
            }
        });
    });
</script>
</body>
</html>